#include <sys/time.h>


typedef struct {
	struct timeval start;
	struct timeval end;
} Timer;

#ifdef __cplusplus
extern "C" {
#endif

void startTimer(Timer* t);
void endTimer(Timer* t);
double getTimeDiff(Timer* t);

#ifdef __cplusplus
}
#endif
